
/*
 * sb3xdef.h -- definitions for the network module common to ARM and DSP
 *
 * Copyright (C) 2008 Sandbridge Technologies
 * Alex Wolfson - created
 *
 */

#ifndef _SB3XDEF_H_
#define _SB3XDEF_H_

/*
ARM and DSP communicate using Queue mechanism defined by ARMxDSP API

Design:


1. First implementation assumes a synchronous request/response.
	It might be changed to asynchronous in the future.
	Currently, if request is assynchronous, like scan, for example, 
	it shall be handled as 	 "Start scan" 	and then another one - "Get scan results"
2. Slots:
	o - ARM2DSP request/response
	1- DSP2ARM events
	2- ARM2DSP data (network packages)
	3- DSP2ARM data
3. Message format:
	request_type	sb3x_msgheader_len (4) bytes
	request_msg	req_len bytes
4. Response format:
	respond_status
	respond_msg *respond_len bytes

5. Size of the message can be found from ARMARMxDSP API
return:
	respond_status
	0 - success
	
*/

#define MAC_DSP_CORE           0

#define ARMXDSP_CONTROL_SLOT   0
#define DSP2ARM_EVENT_SLOT     1

#define ARM2DSP_DATA_SLOT      3
#define DSP2ARM_DATA_SLOT      3

#endif // _SB3XDEF_H_
